/** @file
 * This header defines my logging macros. */

#ifndef _LOG4CPLUS_MY_LOGGING_MACROS_HEADER_
#define _LOG4CPLUS_MY_LOGGING_MACROS_HEADER_

#include <log4cplus/loggingmacros.h>

/** My own macros */

#ifndef LOG_TRACE
#define LOG_TRACE(logEvent)     LOG4CPLUS_TRACE(logger, logEvent)
#endif
#ifndef LOG_DEBUG
#define LOG_DEBUG(logEvent)     LOG4CPLUS_DEBUG(logger, logEvent)
#endif
#ifndef LOG_INFO
#define LOG_INFO(logEvent)      LOG4CPLUS_INFO(logger, logEvent)
#endif
#ifndef LOG_WARN
#define LOG_WARN(logEvent)      LOG4CPLUS_WARN(logger, logEvent)
#endif
#ifndef LOG_ERROR
#define LOG_ERROR(logEvent)     LOG4CPLUS_ERROR(logger, logEvent)
#endif
#ifndef LOG_FATAL
#define LOG_FATAL(logEvent)     LOG4CPLUS_FATAL(logger, logEvent)
#endif

#ifndef LOG_INSTANCE
#define LOG_INSTANCE(str)       log4cplus::Logger logger(log4cplus::Logger::getInstance(str))
#endif

#ifndef LOG_INSTANCE_H
#define LOG_INSTANCE_H(str)     log4cplus::Logger logger
#endif


#endif /* _LOG4CPLUS_MY_LOGGING_MACROS_HEADER_ */
